package com.swak.entity;

import com.swak.utils.Objects;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@ToString
public class Wrap<T> {
	private T value;

	@Override
	public int hashCode() {
		return Objects.hashCode(value);
	}

	@Override
	@SuppressWarnings("rawtypes")
	public boolean equals(Object obj) {
		if (obj == null || !(obj instanceof Wrap)) {
			return false;
		}
		return Objects.equals(this.value, ((Wrap) obj).value);
	}
}
